package com.ecelin;

import org.dromara.x.file.storage.spring.EnableFileStorage;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author ecelin
 */
@SpringBootApplication
@EnableFileStorage
public class MainApp {
	public static void main(String[] args) {
		ConfigurableApplicationContext run = SpringApplication.run(MainApp.class, args);
		String property = run.getEnvironment().getProperty("server.port");
		String port = property == null ? "8080" : property;
		System.out.println("\n--------------------文档地址--------------------");
		System.out.println("http://localhost:" + port + "/doc.html");
		System.out.println("--------------------文档地址--------------------\n");
	}
}
